import { http } from '@/utils/http'

/** 查询OSS对象存储列表 */
export function listOss(params?: object) {
  return http.request<HttpPaginationResponse<Array<any>>>('get', '/resource/oss/list', {
    params,
  })
}

/** 查询OSS对象基于id串 */
export function listByIds(ossId: number) {
  return http.request<HttpResponse<Object>>('get', '/resource/oss/listByIds/' + ossId)
}

/** 删除OSS对象存储 */
export function delOss(ossId: number) {
  return http.request<HttpResponse<Object>>('delete', '/resource/oss/' + ossId)
}
